package com.haima.ziliao.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.haima.ziliao.mapper.PVipconfigMapper;
import com.haima.ziliao.domain.PVipconfig;
import com.haima.ziliao.service.IPVipconfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * 会员配置Service业务层处理
 * 
 * @author hima
 * @date 2024-10-28
 */
@Service
public class PVipconfigServiceImpl extends ServiceImpl<PVipconfigMapper, PVipconfig> implements IPVipconfigService
{
    @Autowired
    private PVipconfigMapper pVipconfigMapper;

    /**
     * 查询会员配置
     * 
     * @param id 会员配置主键
     * @return 会员配置
     */
    @Override
    public PVipconfig selectPVipconfigById(Long id)
    {
        return pVipconfigMapper.selectPVipconfigById(id);
    }

    /**
     * 查询会员配置列表
     * 
     * @param pVipconfig 会员配置
     * @return 会员配置
     */
    @Override
    public List<PVipconfig> selectPVipconfigList(PVipconfig pVipconfig)
    {
        return pVipconfigMapper.selectPVipconfigList(pVipconfig);
    }

    /**
     * 新增会员配置
     * 
     * @param pVipconfig 会员配置
     * @return 结果
     */
    @Override
    public int insertPVipconfig(PVipconfig pVipconfig)
    {
        return pVipconfigMapper.insertPVipconfig(pVipconfig);
    }

    /**
     * 修改会员配置
     * 
     * @param pVipconfig 会员配置
     * @return 结果
     */
    @Override
    public int updatePVipconfig(PVipconfig pVipconfig)
    {
        return pVipconfigMapper.updatePVipconfig(pVipconfig);
    }

    /**
     * 批量删除会员配置
     * 
     * @param ids 需要删除的会员配置主键
     * @return 结果
     */
    @Override
    public int deletePVipconfigByIds(Long[] ids)
    {
        return pVipconfigMapper.deletePVipconfigByIds(ids);
    }

    /**
     * 删除会员配置信息
     * 
     * @param id 会员配置主键
     * @return 结果
     */
    @Override
    public int deletePVipconfigById(Long id)
    {
        return pVipconfigMapper.deletePVipconfigById(id);
    }
}
